function orderDeadline(){
    // 订单创建时间
    let create = new Date(this.$u.timeFormat(createtime, 'yyyy-mm-dd hh:MM:ss'))
    // 订单结束时间
    var addHour = new Date(create.setHours(create.getHours() + 24));
    // 现在时间
    let now= new Date();
    // 计算时会发生隐式转换，调用valueOf()方法，转化成时间戳的形式
    var days = (addHour- now)/1000/3600/24; 
    var day = Math.floor(days);
    var hours = (days - day)*24;
    var hour = Math.floor(hours);
    var minutes = (hours - hour)*60;
    var minute = Math.floor(minutes);
    if(addHour> now){
        return false
        // console.log('不关闭订单');
    } else{
        // console.log('关闭订单');
        return true
    }
    // return this.$u.timeFormat(createtime, 'yyyy-mm-dd hh:MM:ss');
    // return day+':'+hour+'：'+minute
}


// 倒计时
function countDown() {
    let that = this;
    let t = parseInt(that.orderDetail.ext_arr.expired_time * 1000) - parseInt(new Date().getTime());
    t = t / 1000;
    timer = setInterval(() => {
        if (t > 0) {
            let time = that.$tools.format(t);
            that.timeText = this.i18n('支付剩余时间')+` ${time.h}:${time.m}:${time.s}`;
            t--;
        } else {
            clearInterval(timer);
            that.timeText = this.i18n('订单已过期')+'!';
        }
    }, 1000);
}